package com.it.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.it.entity.User;
import com.it.mapper.UserMapper;
import com.it.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author：Dream
 * @Package：com.it.service.impl
 * @Project：shiro-springboot
 * @name：UserServiceImpl
 * @Date：2025/10/22 14:34
 * @Filename：UserServiceImpl
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserInfo(String username) {
        QueryWrapper<User> queryWrapper = new QueryWrapper<>();

        queryWrapper.eq("name",username);
        User user = userMapper.selectOne(queryWrapper);

        return user;
    }
}
